/*
 * @Author: WuFeng <763467339@qq.com>
 * @Date: 2024-05-23 17:06:09
 * @LastEditTime: 2024-05-24 17:20:53
 * @LastEditors: WuFeng <763467339@qq.com>
 * @Description: 
 * @FilePath: \vue-code-design\templates\javaFengLu\entity\TableName.java
 * Copyright 版权声明
 */
package com.jingxin.zero.flow.entity;

import cn.hutool.core.date.DatePattern;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;

import java.time.LocalDateTime;
import com.jingxin.zero.core.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;

/**
*
* @author ethan
*/

@Data
@TableName("{{{=it.tableInfo.name}}}")
public class {{{=it.tableInfo.nameLargeHump}}} extends BaseEntity {

  {{{~it.tableInfo.columns :value:index}}}
	/**
	*	{{{=value.COLUMN_COMMENT}}}
	*/
	private {{{=(function(value) {
    if (['int', 'tinyint'].includes(value.DATA_TYPE)) {
      return 'Integer';
    } else if(['bigint'].includes(value.DATA_TYPE)) {
      return 'Long';
    } else if(['datetime', 'timestamp'].includes(value.DATA_TYPE)) {
      return 'LongDateTime';
    } else if(['date'].includes(value.DATA_TYPE)) {
      return 'LocalDate';
    } else if(['double', 'number'].includes(value.DATA_TYPE)) {
      return 'Double';
    } else if(['decimal'].includes(value.DATA_TYPE)) {
      return 'BigDecimal';
    } else {
      return 'String';
    }
  })(value)}}} {{{=value.COLUMN_NAME_ALIAS}}};
  {{{~}}}

}